package com.hdoit.apollo.web.statistics.modelconfig;

import com.hdoit.apollo.web.shop.providers.StaffProvider;
import com.hdoit.apollo.web.statistics.providers.RecordTypeProvider;
import com.tennetcn.web.component.attribute.DisplayNameAttribute;
import com.tennetcn.web.component.attribute.DropDownListAttribute;
import com.tennetcn.web.component.attribute.base.ModelMetadataAttributeConfiguration;

public class StockChangeRecordSearchConfig extends ModelMetadataAttributeConfiguration{
	 public StockChangeRecordSearchConfig(){
		 this.setProperty("createUserId")
         .hasAttribute(new DisplayNameAttribute("创建人"))
         .hasAttribute(new DropDownListAttribute(new StaffProvider()));  

     this.setProperty("recordType")
         .hasAttribute(new DisplayNameAttribute("记录类型"))
     	 .hasAttribute(new DropDownListAttribute(new RecordTypeProvider()));  
     
     this.setProperty("startDate")
     	 .hasAttribute(new DisplayNameAttribute("开始时间"));

	    this.setProperty("endDate")
	      .hasAttribute(new DisplayNameAttribute("至"));

	    }
}
